package com.ruoyi.yun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yun.mapper.YunCoufigDtasMapper;
import com.ruoyi.yun.domain.YunCoufigDtas;
import com.ruoyi.yun.service.IYunCoufigDtasService;

/**
 * 数字字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class YunCoufigDtasServiceImpl implements IYunCoufigDtasService 
{
    @Autowired
    private YunCoufigDtasMapper yunCoufigDtasMapper;

    /**
     * 查询数字字典
     * 
     * @param id 数字字典主键
     * @return 数字字典
     */
    @Override
    public YunCoufigDtas selectYunCoufigDtasById(Long id)
    {
        return yunCoufigDtasMapper.selectYunCoufigDtasById(id);
    }

    /**
     * 查询数字字典列表
     * 
     * @param yunCoufigDtas 数字字典
     * @return 数字字典
     */
    @Override
    public List<YunCoufigDtas> selectYunCoufigDtasList(YunCoufigDtas yunCoufigDtas)
    {
        return yunCoufigDtasMapper.selectYunCoufigDtasList(yunCoufigDtas);
    }

    /**
     * 新增数字字典
     * 
     * @param yunCoufigDtas 数字字典
     * @return 结果
     */
    @Override
    public int insertYunCoufigDtas(YunCoufigDtas yunCoufigDtas)
    {
        return yunCoufigDtasMapper.insertYunCoufigDtas(yunCoufigDtas);
    }

    /**
     * 修改数字字典
     * 
     * @param yunCoufigDtas 数字字典
     * @return 结果
     */
    @Override
    public int updateYunCoufigDtas(YunCoufigDtas yunCoufigDtas)
    {
        return yunCoufigDtasMapper.updateYunCoufigDtas(yunCoufigDtas);
    }

    /**
     * 批量删除数字字典
     * 
     * @param ids 需要删除的数字字典主键
     * @return 结果
     */
    @Override
    public int deleteYunCoufigDtasByIds(Long[] ids)
    {
        return yunCoufigDtasMapper.deleteYunCoufigDtasByIds(ids);
    }

    /**
     * 删除数字字典信息
     * 
     * @param id 数字字典主键
     * @return 结果
     */
    @Override
    public int deleteYunCoufigDtasById(Long id)
    {
        return yunCoufigDtasMapper.deleteYunCoufigDtasById(id);
    }
}
